home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2002:003
- #
-
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(13911);
- script_version ("$Revision: 1.2 $");
-
- name["english"] = "MDKSA-2002:003: sudo";
-
- script_name(english:name["english"]);
-
- desc["english"] = "
- The remote host is missing the patch for the advisory MDKSA-2002:003 (sudo).
-
-
- The SuSE Security Team discovered a vulnerability in sudo that can be exploited
- to obtain root privilege because sudo is installed setuid root. An attacker
- could trick sudo to log failed sudo calls executing the sendmail (or equivalent
- mailer) program with root privileges and an environment that is not completely
- clean. This problem has been fixed upstream by the author in sudo 1.6.4 and it
- is highly recommended that all users upgrade regardless of what mailer you are
- using.
-
-
- Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2002:003
- Risk factor : High";
-
-
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the sudo package";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Mandrake Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
- script_require_keys("Host/Mandrake/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"sudo-1.6.4-1.1mdk", release:"MDK7.1", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"sudo-1.6.4-1.1mdk", release:"MDK7.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"sudo-1.6.4-1.1mdk", release:"MDK8.0", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"sudo-1.6.4-1.1mdk", release:"MDK8.1", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
-